import Vue from 'vue';
import {
  ValidationProvider,
  extend
} from 'vee-validate'
import Vant from 'vant';
import App from './App.vue';
import router from './router.js'
import store from './store'
import zh_CN from 'vee-validate/dist/locale/zh_CN'
import 'vant/lib/index.css';
import 'amfe-flexible';
import 'vant/lib/index.css';

Vue.use(Vant);
Validator.localize('zh_CN', zh_CN)


extend('mobile', {
  message: '请输入正确的手机号',
  validate: value =>
    value.length === '11' && /^((13|14|15|17|18)[0-9]{1}\d{8})$/.test(value)
})


Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app');